package com.zjm.find.service;


import com.zjm.find.pojo.*;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @Author 涛涛
 * @Create 2021/1/17
 */
public interface UserService {
    WXSessionModel wxAuthorization(String code);

    User checkUserExistByOpenId(User user);

    void updateUserInfoByOpenId(User user);

    int addUser(User user);

    List allUser(User user);

    boolean createSuggestion(Suggestion suggestion);

    boolean createFollow(UserFollow userFollow);

    boolean cancelFollow(UserFollow userFollow);

    List<UserFollow> selectFollow(UserFollow userFollow);

    List selectUserFollow(UserFollow userFollow);

    List selectHistory(UserHistory userHistory);

    boolean createHistory(UserHistory userHistory);

    boolean deleteHistory(UserHistory userHistory);
}
